package com.zgt.dao;

import java.util.List;

import com.zgt.model.Admin;
import com.zgt.model.Student;
import com.zgt.model.Topic;

public interface TopicDao {

	public void saveTopic(Topic topic);

	public Topic getTopicById(int id);

	public List<Topic> listTopic(int pageStart,int pageSize);

	public void updateTopic(Topic topic);

	public void deleteTopicById(int id);

	public boolean isExist(Topic Topic);

	public int getCount(String query);

	public void saveTopics(List list);

	public List<Topic> listSearch(String string, int offset, int pageSize);
}
